<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>个人设置</title>
    <style>
        /* 整体样式 */
        body {
            font-family: 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
            background-color: #f5f5f5;
            margin: 0;
            padding: 0;
        }

        .container {
            max-width: 800px;
            margin: 0 auto;
            padding: 40px;
        }

        /* 导航栏样式 */
        .navbar {
            background-color: #1E90FF;
            padding: 10px;
            display: flex;
            justify-content: center;
        }

        .navbar a {
            color: #fff;
            text-decoration: none;
            padding: 10px 20px;
            font-size: 16px;
            transition: background-color 0.3s ease;
        }

        .navbar a:hover {
            background-color: #1873C2;
        }

        /* 专栏样式 */
        .column {
            background-color: #fff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .column:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        .column h2 {
            color: #1E90FF;
            margin-top: 0;
            font-size: 24px;
        }

        .column p {
            color: #555;
            font-size: 16px;
        }

        .column form {
            display: flex;
            flex-direction: column;
        }

        .column input {
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 16px;
            margin-bottom: 20px;
        }

        .column button {
            background-color: #1E90FF;
            border: none;
            color: #fff;
            padding: 10px 20px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 16px;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .column button:hover {
            background-color: #1873C2;
        }

        /* 提示框样式 */
        .alert {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: #1E90FF;
            color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 999;
        }

        .alert.show {
            opacity: 1;
        }
    </style>
</head>
<body>
<div class="navbar">
    <a href="#">用户管理</a>
    <a href="#">测试用例</a>
    <a href="#">测试执行</a>
    <a href="#">个人设置</a>
</div>

<div class="container">
    <div class="column">
        <h2>修改个人密码</h2>
        <form id="passwordForm">
            <input type="password" placeholder="请输入原密码" />
            <input type="password" placeholder="请输入新密码" />
            <input type="password" placeholder="请确认新密码" />
            <button type="submit">保存更改</button>
        </form>
    </div>

    <div class="column">
        <h2>修改联系方式</h2>
        <form id="contactForm">
            <input type="tel" placeholder="请输入新的联系方式" />
            <button type="submit">保存更改</button>
        </form>
    </div>
</div>

<div class="alert" id="alert">
    <p>更改成功!</p>
</div>

<script>
    const passwordForm = document.getElementById('passwordForm');
    const contactForm = document.getElementById('contactForm');
    const alert = document.getElementById('alert');

    passwordForm.addEventListener('submit', (event) => {
        event.preventDefault();
        showAlert();
    });

    contactForm.addEventListener('submit', (event) => {
        event.preventDefault();
        showAlert();
    });

    function showAlert() {
        alert.classList.add('show');
        setTimeout(() => {
            alert.classList.remove('show');
        }, 2000);
    }
</script>
</body>
</html>